package com.itheima.Jiuye12;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

public class propertiesDemo1 {
    public static void main(String[] args) throws IOException {
        Properties pop = new Properties();
        pop.setProperty("wangwu","25");
        pop.setProperty("lisi","24");
        pop.setProperty("zhaoliu","26");
        FileWriter fw = new FileWriter("mJiuYe\\ExceptionTest.properties");
        pop.store(fw,null);   //一次性将集合的数据写到文件中
        fw.close();
    }
}
